package com.hangim.hangimsia.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.hangim.hangimsia.common.domain.IdEntity;

import java.util.Date;

/**
 * <p>
 * 古文库
 * </p>
 *
 * @author hongjiliang
 * @since 2018-10-20
 */
@TableName("base_article")
public class BaseArticle extends IdEntity {

    /**
     * 作者
     */
    @TableField("author_id")
    private Long authorId;
    /**
     * 标题
     */
    private String title;
    /**
     * 关键字
     */
    private String keyword;
    /**
     * 朝代
     */
    private String dynasty;
    /**
     * 内容
     */
    private String content;
    /**
     * 状态
     */
    private Integer active;
    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * 创建人
     */
    @TableField("created_by")
    private Long createdBy;
    /**
     * 修改时间
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * 修改人
     */
    @TableField("updated_by")
    private Long updatedBy;
    /**
     * 删除人
     */
    @TableField("deleted_at")
    private Date deletedAt;
    /**
     * 删除时间
     */
    @TableField("deleted_by")
    private Long deletedBy;

    public Long getAuthorId() {
        return authorId;
    }

    public void setAuthorId(Long authorId) {
        this.authorId = authorId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getDynasty() {
        return dynasty;
    }

    public void setDynasty(String dynasty) {
        this.dynasty = dynasty;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Long getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Long updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Date getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(Date deletedAt) {
        this.deletedAt = deletedAt;
    }

    public Long getDeletedBy() {
        return deletedBy;
    }

    public void setDeletedBy(Long deletedBy) {
        this.deletedBy = deletedBy;
    }

    @Override
    public String toString() {
        return "BaseArticle{" +
                ", id=" + id +
                ", authorId=" + authorId +
                ", title=" + title +
                ", keyword=" + keyword +
                ", dynasty=" + dynasty +
                ", content=" + content +
                ", active=" + active +
                ", createdAt=" + createdAt +
                ", createdBy=" + createdBy +
                ", updatedAt=" + updatedAt +
                ", updatedBy=" + updatedBy +
                ", deletedAt=" + deletedAt +
                ", deletedBy=" + deletedBy +
                "}";
    }
}
